body {
  margin: 0 auto;
  padding: 0;
}
button {
  cursor: pointer;
}
li {
  list-style: none;
}
select {
  outline-style: none;
  border: 2px solid #989ca0;
  border-radius: 6px;
  height: 30px;
  margin: 10px 10px;
  width: 40%;
}
.mask,
.mask-editor {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  position: fixed;
  z-index: 2;
  cursor: pointer;
  display: none;
  .window {
    box-sizing: border-box;
    padding: 5px 10px;
    background-color: white;
    width: 450px;
    height: 550px;
    position: relative;
    border-radius: 10px;
    ul {
      margin-top: 80px;
    }
    li {
      margin: 10px 20px;
      input {
        border: 2px solid #989ca0;
        border-radius: 6px;
        height: 25px;
        margin: 10px 10px;
        width: 60%;
        outline-style: none;
      }
      label {
        width: 40px;
        height: 30px;
        color: #64666a;
      }
    }
  }
}
.confirm {
  &-mask {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    position: fixed;
    z-index: 2;
    cursor: pointer;
  }
  &-window {
    position: relative;
    border-radius: 8px;

    background-color: white;
    width: 545px;
    height: 165px;
  }
  &-top {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding-top: 5px;
    padding-right: 5px;

    width: 100%;
    height: 50px;
    span {
      display: inline-block;
      margin-top: 10px;
      margin-left: 30px;
      font-size: 23px;
    }
  }
  &-cancel {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    width: 20px;
    height: 20px;
    font-size: 18px;
    font-weight: lighter;
    border-radius: 50%;
    color: #cacdd2;
    border: 1px solid #d7dbe3;
    background-color: #ffffff;
    text-align: center;
    &:hover {
      color: rgb(248, 248, 248);
      background-color: #dfdfdf;
    }
  }
  &-content {
    box-sizing: border-box;
    margin: 20px 50px;
    font-size: 18px;
    .iconfont {
      font-size: 28px;
      color: rgb(255, 204, 0);
    }
  }
  &-button {
    width: 190px;
    height: 50px;
    right: 0%;
    position: absolute;
    bottom: 0%;
    button {
      width: 75px;
      height: 40px;
      font-size: 18px;
      border-style: none;
      border-radius: 5px;
    }
    .c-sure {
      color: white;
      background-color: #53a9ff;
      &:hover {
        background-color: #3491ed;
      }
    }
    .c-cancel {
      color: #b7b6b6;
      background-color: #f3f4f4;
      &:hover {
        color: #7f8080;
      }
    }
  }
}
.window {
  box-sizing: border-box;
  padding: 5px 10px;
  background-color: white;
  width: 450px;
  height: 550px;
  position: relative;
  border-radius: 10px;
  ul {
    margin-top: 80px;
  }
  li {
    margin: 10px 20px;
    input {
      border: 2px solid #989ca0;
      border-radius: 6px;
      height: 25px;
      margin: 10px 10px;
      width: 60%;
      outline-style: none;
    }
    label {
      width: 40px;
      height: 30px;
      color: #64666a;
    }
  }
}
.add,
.editor {
  background-color: #409eff;
  color: white;
  border-style: none;
  border-radius: 5px;
  width: 100px;
  height: 40px;
  position: absolute;
  margin-top: 30px;
  left: 37%;
  font-size: 18px;
  &:hover {
    color: #e7e7e7;
  }
}

.cancel {
  box-sizing: border-box;
  padding-bottom: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #dcdfe6;
  background-color: #ffffff;
  text-align: center;
  &:hover {
    color: rgb(248, 248, 248);
    background-color: #dfdfdf;
  }
  float: right;
}
.top {
  padding: 5px 10px;
  .iconfont {
    cursor: pointer;
    font-size: 40px;
    float: left;
  }
  .backBtn {
    background: rgba(0, 0, 0, 0);
    border-style: none;
    .iconfont {
      font-size: 28px;
      color: white;
      &:hover {
        color: #e6e9ee;
      }
    }
    float: right;
    cursor: pointer;
  }
  position: fixed;
  z-index: 2;
  width: 100%;
  height: 50px;
  text-align: center;
  background-image: linear-gradient(
    to right,
    #64acfe,
    #7b92fa,
    #9677f9,
    #9e6ff9
  );
  color: aliceblue;
  font-size: 20px;
  box-sizing: border-box;
  padding-top: 10px;
}
.viewport {
  display: flex;
  position: relative;
  top: 50px;
}
.sidebar {
  position: fixed;
  color: #9fa3a4;
  margin-top: 0;
  width: 12%;
  height: 100%;
  line-height: 30px;
  box-sizing: border-box;
  background-color: #292f33;
  background-image: url(../img/33c7b314-d68d-45fa-9cd1-7a51583faaf3.jpg);
  background-repeat: repeat-x;
  background-size: cover;
  background-position: center;
  &::before {
    content: "";
    display: block;
    position: absolute;
    background-color: #292f33;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  .header {
    position: relative;
    z-index: 1;
    margin: 0;
    height: 100px;
    padding-left: 5px;
    text-align: center;
    p {
      margin-top: 0;
    }
    .head-img {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      overflow: hidden;
      margin: auto;
      margin-top: 25px;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
  .nav {
    position: relative;
    z-index: 1;
    height: 500px;
    font-size: 17px;
    color: #c5c5c5;
    list-style: none;
    padding-left: 5px;
    > li {
      height: 40px;
      margin: 5px;
      text-align: center;
      &:hover {
        cursor: pointer;
        color: white;
      }
    }
    li:nth-child(1) {
      color: white;
    }
  }
}
.content {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  left: 12%;
  box-sizing: border-box;
  padding: 45px 50px;
  padding-top: 0;
  width: 88%;
  background-color: #f4f5fa;
  p {
    color: #64666a;
  }
}
.refresh {
  height: 50px;
  box-sizing: border-box;
  padding: 10px 20px;
  width: 100%;
  .fresh {
    float: right;
    border: 1px solid #dcdfe6;
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    i {
      font-weight: lighter;
      color: #64666a;
    }
    &:hover {
      background-color: #e8e5e5;
    }
  }
}
#stu-info {
  width: 100%;
  height: 450px;
  input[value="删除"] {
    background-color: #f56c6c;
  }
}
table {
  width: 100%;
  border-collapse: collapse;
  tr,
  th,
  td {
    word-break: break-all;
    width: 50px;
    border: 1px solid rgb(200, 200, 200);
  }
  tr {
    height: 35px;
  }
  thead {
    color: #51556a;
    background-color: #f4f5fa;
  }
  text-align: center;
  tbody {
    tr:nth-child(even) {
      background-color: #eff3f6;
    }
  }
  .remove {
    height: 25px;
    width: 40px;
    background-color: #fef0f0;
    border-radius: 3px;
    border: 1px solid #f56c6c;
    i {
      color: #f56c6c;
      font-size: 20px;
    }
    &:hover {
      background-color: #fbbdbd;
    }
  }
  .edit {
    height: 25px;
    width: 40px;
    border-radius: 3px;
    background-color: #e8f4ff;
    border: 1px solid #64acfe;
    i {
      font-size: 20px;
      color: #64acfe;
    }
    &:hover {
      background-color: #b4d4f8;
    }
  }
  .save {
    height: 25px;
    width: 40px;
    background-color: rgb(228, 245, 230);
    border: 1px solid rgb(19, 138, 17);
    i {
      color: #0bb767;
    }
    border-radius: 5px;
    &:hover {
      background-color: #bfe8c0;
    }
  }
  input {
    outline-style: none;
    border-style: none;
    border-bottom: 1px solid #444749;
    width: 100px;
    font-size: 16px;
    &[type="checkbox"] {
      cursor: pointer;
      width: 15px;
    }
  }
  tbody {
    font-size: 16px;
  }
}
caption {
  box-sizing: border-box;
  padding-top: 5px;
  height: 30px;
  background-color: #64acfe;
  color: white;
}
.info {
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 2px 3px 5px #eeeff4, -1px -3px 5px #eeeff4;
  height: 100%;
  width: 100%;
  position: relative;
  padding: 15px 15px;
  box-sizing: border-box;
}
#search-add {
  position: relative;
  border: 2px solid #edf3f7;
  height: 100px;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 15px;
  label {
    height: 40px;
    box-sizing: border-box;
    padding: 5px 5px;
  }
  .addBtn,
  .checkBtn {
    i {
      font-size: 12px;
    }
    border: 1px solid #64acfe;
    font-size: 12px;
    color: #64acfe;
    height: 30px;
    background-color: #e8f4ff;
    width: 60px;
    font-size: 12px;
    letter-spacing: 1px;
    margin: 10px;
    &:hover {
      background-color: #64acfe;
      color: white;
    }
    border-radius: 5px;
  }
  .checkBtn {
    i {
      font-size: 18px;
    }
    width: 120px;
    background-color: #fef0f0;
    border-radius: 4px;
    border: 1px solid #f56c6c;
    color: #f56c6c;
    &:hover {
      color: #f76c6c;
      background-color: #f8c6c6;
    }
  }
  .search {
    input[name="search"] {
      height: 30px;
      border-radius: 5px;
    }
    button {
      height: 32px;
      width: 65px;
      background-color: #55aaff;
      color: white;
      border-style: none;
      border-radius: 5px;
      &:hover {
        background-color: #459ef7;
      }
    }
    input {
      padding-left: 5px;
      width: 200px;
      height: 22px;
      outline-style: none;
      border: 2px solid #edf3f7;
    }
  }
}

.page {
  position: absolute;
  right: 15px;
  button {
    width: 30px;
    height: 30px;
    text-align: center;
    background-color: rgb(251, 251, 251);
    border: 1.2px solid #d8d8d8;
    border-radius: 5px;

    font-size: 15px;
    color: #595656;
    font-weight: bold;

    &:hover {
      background-color: #f1f1f1;
    }

    &:disabled {
      cursor: not-allowed;
      background-color: #eeeff1;
      color: #b3b6b7;
    }
  }
}

.alert {
  transition: all 0.5s;
  font-size: 13px;
  border-radius: 6px;
  position: fixed;
  z-index: 5;
  left: 50%;
  top: 10%;
  box-sizing: border-box;
  width: 327px;
  height: 40px;
  transform: translate(-50%, 0);

  padding: 10px 10px;
  opacity: 0;
  span {
    margin-left: 5px;
  }
}
.success {
  background-color: #def5de;
  color: #0bb767;
}
.err {
  background-color: #ffeded;
  color: #e52121;
}
.show {
  opacity: 1;
}
